<%@ page language="Java" import="java.sql.*" %> 
<HTML> 
    <HEAD><TITLE>DataBase Search</TITLE></HEAD>  
    <BODY>
        
         <jsp:useBean id="db" scope="request" class="Beans.LoginBean" >
         <jsp:setProperty name="db" property="mail" value="<%=request.getParameter("mail")%>"/>
         <jsp:setProperty name="db" property="password" value="<%=request.getParameter("password")%>"/>
        </jsp:useBean>
          
        <% out.println("MAIL DA DB" + db.getMail() + "" ); %>
        <% out.println("MAIL DA DB" + db.getPassword() + "" ); %>
       
        <!--Fin qui: Funziona e stampa correttamente i parametri-->
        
        <b>user:<%=db.getMail()%></b>
        <b>pwd:<%=db.getPassword()%></b>
        <b>STAMPA 3</b>
         <jsp:forward page="\LoginServlet">
            <jsp:param name="mail" value="<%=db.getMail()%>"/> 
            <jsp:param name="password" value="<%=db.getPassword()%>" />
        </jsp:forward> 
        <b>STAMPA 4</b>
        
        
     
    </body>
</html>